package com.cdfahe.gms.service;

import java.util.List;

import com.cdfahe.common.util.page.ResultFilter;
import com.cdfahe.gms.mybatis.entity.News;
import com.cdfahe.gms.mybatis.entity.NewsExample;

public interface INewsService {
	
	public ResultFilter<News> listNews(ResultFilter<News> rf,int type,int pagesize);
	public int getTotalNewByType(int type);
	News getNewsById(int idnum);
	void addNews(News news);
	void delNewsById(int idnum);
	void updateNewsById(News u);
	void updateNewsByExample(NewsExample example);
	List<News> selectNewsByExample(NewsExample example);
	List<News> selectNewsByPageAndType(int type, int page, int pagesize);
}
